<div id="actionbar">
    <a href="javascript:;" url="{:url('vip.coupon/coupon',['id' => $id])}" class="button button-blue win"> <i class="iconfont icon-add_icon"></i>关联优惠券</a>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th>优惠券</th>
            <th>店铺</th>
            <th class="w90 fn-tac">类型</th>
            <th class="w90 fn-tar">满用(￥)</th>
            <th class="w90 fn-tar">折扣/代金</th>
            <th class="w120 fn-tac">更新日期</th>
            <th class="w60 fn-tac">状态</th>
            <th class="w80 fn-tac">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td>
                <p class="win" url="{:url('coupon/review',['id'=>$vo.id])}">
                    <i class="iconfont icon-discount"></i><span class="fn-cp fn-fb" url="{:url('coupon/review',['id'=>$vo.id])}">{$vo.name}</span><br />
                    <span class="gray"><i class="iconfont icon-wodedingdan2"></i>{$vo.tips}</span>
                </p>
            </td>
            <td><span class="win fn-cp" url="{:url('store.index/review',['id'=>$vo.store.id])}"><i class="iconfont icon-store_icon"></i>{$vo.store.name}</span></td>
            <td class="fn-tac">{$vo.types == 1 ?'折扣券':'代金券'} </td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.howmuch|money}</td>
            <td class="fn-tar">{if $vo.types}{$vo.discount}折{else}￥{$vo.price}{/if}</td>
            <td class="fn-tac">{$vo.update_time|date="Y-m-d"}</td>
            <td class="fn-tac">
                {if $vo.is_end}
                    <span class="fn-cp badge bg-red">失效</span>
                {else}
                    <span class="fn-cp badge {$vo.is_lock?'bg-green':''}">{$vo.is_lock?'未审':'已审'}</span><br />
                    <span class="fn-cp badge {$vo.is_top?'bg-blue':''}">{$vo.is_top?'推荐':'推荐'}</span>
                {/if}
            </td>
            <td class="button-group">
                <a class="button button-mini isDel" url="{:url('vip.coupon/delete',['id'=>$id,'coupon_id' => $vo.id])}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $(".win").win({reload:1});
})
</script>